package org.traffometer.traffosim;

import static org.junit.Assert.fail;

import java.io.File;

import org.junit.Test;

/**
 * Provides tests for Controller class.
 * 
 * @author Nam Nguyen
 */
public class TestController {

  /**
   * Tests the normal operation of the Controller class.
   * 
   * @throws InterruptedException if a thread is interrupted when sending packets.
   */
  @Test
  public void testNormalOperations () throws InterruptedException {
    Controller controller = new Controller();
    controller.setServerAddress("abc");
    File file = new File("lib/config/static-sample.cfg");
    try {
      controller.openConfig(file);
    }
    catch (ConfigException e) {
      fail("Got exception opening config file" + e);
    }
//    controller.sendPackets();
  }
  
}
